package mn.idax.exchange.otc.util;

public class FileUtils {

    /**检查是否是图片
     * @param date
     * @return
     */
    public static boolean isImage(String fileName) {
        String suffixName = fileName.substring(fileName.lastIndexOf(".") + 1);
    	if("BMP".equalsIgnoreCase(suffixName) || "JPG".equalsIgnoreCase(suffixName)
    	    || "JPEG".equalsIgnoreCase(suffixName) || "PNG".equalsIgnoreCase(suffixName)) {
    		
    		return true;
    	}
    	return false;
    }


}
